﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Public
{
    public class User
    {
        private int userId;
        private Role role;

        public Role Role
        {
            get { return role; }
            set { role = value; }
        }

        public User() { }

        public User(Role r)
        {
            this.role = r;
        }

        public int UserId
        {
            get { return userId; }
            set { userId = value; }
        }

        private string username;
        public string Username
        {
            get { return username; }
            set { username = value; }
        }

        private string password;
        public string Password
        {
            get { return password; }
            set { password = value; }
        }

        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private bool sex;
        public bool Sex
        {
            get { return sex; }
            set { sex = value; }
        }

        private DateTime birthday;
        public DateTime Birthday
        {
            get { return birthday; }
            set { birthday = value; }
        }

        private string phone;
        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }

        private string address;
        public string Address
        {
            get { return address; }
            set { address = value; }
        }

        private DateTime startedDate;
        public DateTime StartedDate
        {
            get { return startedDate; }
            set { startedDate = value; }
        }


    }
}
